<extend name="Public/frame" />
<block name="content-box">

    <form class="form-horizontal tpx-ajaxsubmit" role="form" action="{:U(CONTROLLER_NAME.'/'.ACTION_NAME)}"
          method="post">

        <div class="form-group">
            <label class="col-sm-2 control-label">是否开启</label>

            <div class="col-sm-9">
                <div class="radio">
                    <label>
                        <input type="radio" name="cas_login_enable" value="1" <if condition="$cas_login_enable">checked</if> /> 开启
                    </label>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <label>
                        <input type="radio" name="cas_login_enable" value="0" <if condition="!$cas_login_enable">checked</if> /> 关闭
                    </label>
                </div>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">CAS_HOST</label>
            <div class="col-sm-9">
                <input name="cas_login_host"
                       type="text"
                       class="form-control form-inline"
                       value="{$cas_login_host|t_html}" />
                <div class="help-block"></div>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">CAS_PORT</label>
            <div class="col-sm-9">
                <input name="cas_login_port"
                       type="text"
                       class="form-control form-inline"
                       value="{$cas_login_port|t_html}" />
                <div class="help-block"></div>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">CAS_PATH</label>
            <div class="col-sm-9">
                <input name="cas_login_path"
                       type="text"
                       class="form-control form-inline"
                       value="{$cas_login_path|t_html}" />
                <div class="help-block"></div>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary">{$Think.lang.submit}</button>
            </div>
        </div>

    </form>

</block>